package com.cskaoyan.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * @author stone
 * @date 2022/03/28 10:05
 */
@Configuration
@ComponentScan(value = "com.cskaoyan",
        //type属性可以省略不写，默认值就是FilterType.ANNOTATION；classes属性和value属性一样，写一个就行了
        //excludeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION,classes = Controller.class))
        excludeFilters = @ComponentScan.Filter({Controller.class, EnableWebMvc.class}))
public class SpringConfiguration {
}
